<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="../common/EditUIHead.jsp"></jsp:include>
<title>登录</title>
</head>
<script type="text/javascript">
	var ajaxWin;
	function ajaxLogin(w){
		ajaxWin = w;
		saveAdd();
	}
	function submitForm(){
		$.post($('form').attr('action'),$('form').serialize(),function(res){
			if(res.STATE == "SUCCESS"){
				ajaxWin.close();
			}else{
				art.dialog.tips(res.MSG);
			}
	    },'json');
	}
	$(document).ready(function(){
		$("#userName:focus");
	});
</script>
<body>
	<div id="main">
		<div position="center" style="width:250px">
			<form id="dataForm" action="${base }/ajaxLogin" method="post">
		    	<div>
		        	<table border="0" cellpadding="0" cellspacing="0">
		            	<tr>
		                    <td width="60px">用户名：</td>
		                    <td><input name="userName" id="userName" validate="{required:true,maxlength:20}" type="text"/></td>
		                </tr>
		                <tr>
		                    <td width="60px">密码：</td>
		                    <td><input name="password" id="password" type="password" /></td>
		                </tr>
		        	</table>
				</div>
			</form>
		</div>
	</div>
</body>
</html>